/* 
用户登陆相关的接口请求函数
*/
import request from '@/utils/request'

/* 
登陆
POST /admin/acl/index/login
*/
export function login({username, password}) {
  return request({
    url: '/admin/acl/index/login',
    method: 'post',
    data: {username, password}
  })
  // return request.post('/admin/acl/index/login', {username, password})
}

/* 
获取用户信息
GET /admin/acl/index/info
*/
export function getInfo() {
  return request({
    url: '/admin/acl/index/info',
    method: 'get',
  })
  // return request.get('/admin/acl/index/info')
}

/* 
退出登陆
POST /admin/acl/index/logout
*/
export function logout() {
  return request({
    url: '/admin/acl/index/logout',
    method: 'post'
  })
  // return request.post('/admin/acl/index/logout')
}
